import { Call } from './Call'
import { Request } from './Request'
import { Response } from './Response'

export interface Interceptor {
  intercept(chain: Interceptor.Chain): Promise<Response>
}

export namespace Interceptor {
  export interface Chain {
    getRequest(): Request

    proceed(request: Request): Promise<Response>

    getCall(): Call


  }
}